package nf;

import java.util.ArrayList;

import csv_parser.CSVToMatrix;
import csv_parser.InstancedParser;

public class Training
{

	public static void main(String[] args)
	{
		
		ArrayList<String> data = new ArrayList<>(), plottableData = new ArrayList<>();
		InstancedParser ip = new InstancedParser();
		System.out.println("Do polynomials...");
		ip.doPolynomial("ANALIZA\\pluca.csv", 1, data, plottableData);
		ip.doPolynomial("ANALIZA\\bubreg.csv", 2, data, plottableData);
		ip.doPolynomial("ANALIZA\\dojka.csv", 3, data, plottableData);
		System.out.println("Normalize...");
		ip.normalize(data, plottableData);
		System.out.println("Write to files... " + data.size() + ", " + plottableData.size());
		ip.writeToFiles("karcinom.m", "testkarcinom.m", data, plottableData);
		System.out.println("Done");
	}

}
